package practice04;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice04
 * @ClassName: Cat
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/10 9:38
 * @Copyright 大牛版板所有
 */
public class Cat extends Animal {
    private String gender;

    public Cat() {
    }

    public Cat(String name, int age, String gender) {
        super(name, age);
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public void eat(){
        System.out.println("吃鱼!");
    }

    public void run(){
        System.out.println("跑回家！");
    }
}
